# 开启系统代理
function proxy_on() {
	export http_proxy=http://47.109.152.123:7890
	export https_proxy=http://47.109.152.123:7890
	export no_proxy=47.109.152.123
    export HTTP_PROXY=http://47.109.152.123:7890
    export HTTPS_PROXY=http://47.109.152.123:7890
 	export NO_PROXY=47.109.152.123
	echo -e "\033[32m[√] 已开启代理\033[0m"
}

# 关闭系统代理
function proxy_off(){
	unset http_proxy
	unset https_proxy
	unset no_proxy
  	unset HTTP_PROXY
	unset HTTPS_PROXY
	unset NO_PROXY
	echo -e "\033[31m[×] 已关闭代理\033[0m"
}